import Vue from 'vue'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

// 设置过滤器
Vue.filter("handleStr", function (val) {
    if (val.length > 3) {
        val = val.slice(0, 3) + "...";
    }
    return val;
})

// axios
Vue.prototype.$http = axios

//配置全局组件
import Loading from '../components/Loading.vue'
Vue.component("Loading",Loading)